package game;

import GUI.gameWinOld.ScorePanel;

public class ClassicGameResults extends GameResults {
	private MatchResults[] matchResults;
	private int match;
	
	public ClassicGameResults() {
		matchResults = new MatchResults[GameSettingsOld.getInstance().matchCount];
		for(int i =0; i < GameSettingsOld.getInstance().matchCount; i++)
			matchResults[i] = new ClassicMatchResults(i);
		match=1;
	}
	@Override
	public void addRound(Player winner, int[] points, ScorePanel scorePanel) {
		matchResults[match-1].addRound(winner, points, scorePanel);
		if(matchResults[match-1].getRoundNum()>GameSettingsOld.getInstance().roundCount)
			match++;
	}

}
